<?php
/**
 * 获取擅长标签运营列表
 * @gaojian3
 * 2012年2月23日, PM 10:01:25
 */

include('../../__global.php');
class aj_getTagList extends ml_controller 
{
    private $tagList;
    
    public function initParam()
    {     
        $this->tagList=ml_factory::load_standard_conf('skillTags');
    }
    
    public function checkParam()
    {
        $this->check_referer();
        if(!$this->check_permission(ML_PERMISSION_LOGIN_ONLY)) {
            $this->api_output(ML_RCODE_NOLOGIN);
        }
        else if(!$this->check_permission(ML_PERMISSION_LOGIN_CANWRITE)) {
            $this->api_output(ML_RCODE_NOACTIVE);
        }
    }
    
    public function main()
    {
        $this->api_output(ML_RCODE_SUCC,$this->tagList);
    }
}
new aj_getTagList();